<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/head.jsp"%>
<html>
<head>
    <title>商品详情页</title>
</head>
<body>
    <div class="container">
        <div class="panel panel-default text-center">
            <div class="panel-heading">
                <h2>${seckill.name}</h2>
            </div>

            <div class="panel-body">
                <h2 class="text-danger">
                    <%--显示时间钟--%>
                    <span class="glyphicon glyphicon-time"/>
                    <%--展示倒计时--%>
                    <span class="glyphicon" id="seckill-box"/>
                </h2>
            </div>
        </div>
    </div>
            <%--登录弹出层,输入电话信息--%>
            <div id="killPhoneModal" class="modal fade">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h3 class="modal-title text-center">
                                <span class="glyphicon glyphicon-phone"></span>秒杀电话:
                            </h3>
                        </div>
                        <div class="modal-body">
                            <div class="row">
                                <div class="col-xs-8 col-xs-offset-2">
                                    <input type="text" name="killPhone" id="killPhone"
                                           placeholder="填写手机号" class="form-control"/>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <%--手机登入--%>
                            <span id="killPHoneMessage" class="glyphicon"></span>
                            <button type="button" id="killPhoneBtn" class="btn btn-success">
                                <span class="glyphicon glyphicon-phone"></span>
                                Submit
                            </button>
                        </div>
                    </div>
                </div>
            </div>


</body>
<!-- jQuery 2.2.3 -->
<script src="/static/plugins/jQuery/jquery-2.2.3.min.js" type="text/javascript"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

<script src="${pageContext.request.contextPath}/static/plugins/jQuery/jquery.cookie.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jQuery/jquery.countdown.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jQuery/seckill.js"></script>
<script type="text/javascript">
    $(function () {
        seckill.detail.init({
            seckillId : ${seckill.seckillId},
            startTime : ${seckill.startTime.time},  //转毫秒
            endTime : ${seckill.endTime.time}
        });
    })

</script>

</html>
